package com.example.unisys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.unisys.entity.StuCourse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface StuCourseMapper extends BaseMapper<StuCourse> {

    int insert(StuCourse stucourser);

    int insertSelective(StuCourse stucourse);

    int update(StuCourse stucourse);

    List<StuCourse> getByIds(@Param("exam_id")String exam_id);

    int delete(@Param("exam_id")long exam_id,@Param("course_id")String course_id);


    List<Map<String,Object>> GetExcel(Map map);

   // int delete(@Param("exam_id") long exam_id);

    String getStudyCatch(@Param("exam_id") String exam_id,@Param("course_id") String course_id);

    String  getPhaseCatch(@Param("exam_id")String exam_id,@Param("course_id")String course_id);

    List<StuCourse> getByIdHis(String exam_id,String tag);
}
